<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('审核项目进度')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-post-edit" th:object="${review}">
        <input id="reviewId" name="reviewId" type="hidden" th:field="*{reviewId}"/>
        <table border="1px" style="width: 100%;text-align: center;font-size: 18px;">
            <tr>
                <th class="col-md-4 text-nowrap">项目名称</th>
                <td class="col-md-8" name="projectName">[[*{projectName}]]</td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">订单编号</th>
                <td class="col-md-8" name="orderNumber">[[*{orderNumber}]]</td>
            </tr>
            <!--<tr>-->
            <!--&lt;!&ndash;<th class="col-md-12 text-nowrap">客户信息</th>&ndash;&gt;-->
            <!--<div>客户信息</div>-->
            <!--</tr>-->
            <tr>
                <th class="col-md-4 text-nowrap">客户编号</th>
                <td class="col-md-8" name="clientId" th:text="${client.clientId}"></td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">客户名称</th>
                <td class="col-md-8" name="clientName" th:text="${client.clientName}"></td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">客户类型</th>
                <td class="col-md-8" name="clientType" th:text="${client.clientType}"></td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">联系人</th>
                <td class="col-md-8" name="clientContact" th:text="${client.clientContact}"></td>
            </tr>
            <!--<tr>-->
            <!--&lt;!&ndash;<th class="col-md-12 text-nowrap">项目概况</th>&ndash;&gt;-->
            <!--<div>项目概况</div>-->
            <!--</tr>-->
            <tr>
                <th class="col-md-4 text-nowrap">设计风格</th>
                <td class="col-md-8" name="projectStyle">[[*{projectStyle}]]</td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">地理位置</th>
                <td class="col-md-8" name="projectPosition">[[*{projectPosition}]]</td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">人文环境</th>
                <td class="col-md-8" name="projectEnvironment">[[*{projectEnvironment}]]</td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">采光条件</th>
                <td class="col-md-8" name="projectCondition">[[*{projectCondition}]]</td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">申请人</th>
                <td class="col-md-8" name="staffName">[[*{staffName}]]</td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">申请时间</th>
                <td class="col-md-8" name="reviewApplicationTime"
                    th:text="${#dates.format(review.reviewApplicationTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">工作成果</th>
                <td class="col-md-8 ">一拖拉库的附件</td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">是否通过</th>
                <td class="col-md-8">
                    <label>
                        <input type="radio" name="reviewStatue" th:checked="${review.reviewStatue == 1}"
                               value="1">通过</label>
                    <label>
                        <input type="radio" name="reviewStatue" th:checked="${review.reviewStatue == 2}"
                               value="2">不通过</label>
                    <label>
                        <input type="radio" name="reviewStatue" th:checked="${review.reviewStatue == 3}"
                               value="0">等待审核</label>
                </td>
            </tr>
            <tr>
                <th class="col-md-4 text-nowrap">意见审核</th>
                <td class="col-md-8"><input name="reviewInfo" th:value="*{reviewInfo}" style="border: 0px;"></td>
            </tr>
        </table>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "cyq/item/archiving";

    $("#form-post-add").validate({
        onkeyup: false,
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-post-edit').serialize());
        }
    }
</script>
</body>
</html>
